#import "ZQTWordModels.h"
#import "SDAutoLayout.h"
#import "ZQWordCell.h"
@interface ZQWordCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *updateTimeLabel;
@end
@implementation ZQWordCell
- (void)layoutSubviews
{
    [super layoutSubviews];
}
- (void)setZqwordModel:(ZQTWordModels *)zqwordModel
{
    _zqwordModel = zqwordModel;
    NSString *content = [NSString stringWithFormat:@"      %@",zqwordModel.content];
    self.titleLabel.text = content;
    self.updateTimeLabel.text = zqwordModel.updatetime;
    [self setupAutoHeightWithBottomView: self.updateTimeLabel bottomMargin:10];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    self.titleLabel.sd_layout
    .leftEqualToView(self.contentView)
    .topSpaceToView(self.contentView, 10)
    .rightEqualToView(self.contentView)
    .autoHeightRatio(0);
    self.updateTimeLabel.sd_layout
    .topSpaceToView(self.titleLabel, 10)
    .rightEqualToView(self.contentView)
    .heightIs(20);
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}
@end
